package com.bw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName trace_transport
 */
@TableName(value ="trace_transport")
@Data
public class TraceTransport implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String cropsId;

    /**
     * 司机账号
     */
    private String driverId;

    /**
     * 时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 
     */
    private String farmerNickName;

    /**
     * 农户账号
     */
    private String farmerUserName;

    /**
     * 
     */
    private String farmerTel;

    /**
     * 
     */
    private String farmerDept;

    /**
     * 工厂ID
     */
    private Integer factoryId;

    /**
     * 运输状态（0，未运输，1，正在运输，2，运输完成）
     */
    private Integer status;

    /**
     * 0已入库 1已出库
     */
    private Integer outFactoryStatus;

    /**
     * 零售商签收状态
     */
    private Integer retailerReceiveStatus;

    /**
     * 
     */
    private String remarks;
    @TableField(exist = false)
    private Integer deptId;
    @TableField(exist = false)
    private String userName;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}